FROM nginx:1.15.7-alpine

ARG TZ=Asia/Shanghai
ARG CONTAINER_PACKAGE_URL


RUN if [ "mirrors.aliyun.com" != "" ]; then \
        sed -i "s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g" /etc/apk/repositories; \
    fi

RUN if [ -z "${INSTALL_APPS##*,certbot,*}" ]; then \
        echo "---------- Install certbot ----------"; \
        apk add --no-cache certbot; \
    fi

WORKDIR /www
